home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'Clipbrd.pas' rev: 3.00
-
- #ifndef ClipbrdHPP
- #define ClipbrdHPP
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Clipbrd
- {
- //-- type declarations -------------------------------------------------------
- class DELPHICLASS TClipboard;
- class PASCALIMPLEMENTATION TClipboard : public Classes::TPersistent
- {
- typedef Classes::TPersistent inherited;
-
- private:
- int FOpenRefCount;
- HWND FClipboardWindow;
- bool FAllocated;
- bool FEmptied;
- void __fastcall Adding(void);
- void __fastcall AssignGraphic(Graphics::TGraphic* Source);
- void __fastcall AssignPicture(Graphics::TPicture* Source);
- void __fastcall AssignToBitmap(Graphics::TBitmap* Dest);
- void __fastcall AssignToMetafile(Graphics::TMetafile* Dest);
- void __fastcall AssignToPicture(Graphics::TPicture* Dest);
- System::AnsiString __fastcall GetAsText(void);
- int __fastcall GetFormatCount(void);
- Word __fastcall GetFormats(int Index);
- void __fastcall SetAsText(const System::AnsiString Value);
- void __fastcall SetBuffer(Word Format, void *Buffer, int Size);
- void __fastcall WndProc(Messages::TMessage &Message);
-
- protected:
- virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
-
- public:
- virtual void __fastcall Assign(Classes::TPersistent* Source);
- void __fastcall Clear(void);
- void __fastcall Close(void);
- Classes::TComponent* __fastcall GetComponent(Classes::TComponent* Owner, Classes::TComponent* Parent
- );
- int __fastcall GetAsHandle(Word Format);
- int __fastcall GetTextBuf(char * Buffer, int BufSize);
- bool __fastcall HasFormat(Word Format);
- void __fastcall Open(void);
- void __fastcall SetComponent(Classes::TComponent* Component);
- void __fastcall SetAsHandle(Word Format, int Value);
- void __fastcall SetTextBuf(char * Buffer);
- __property System::AnsiString AsText = {read=GetAsText, write=SetAsText};
- __property int FormatCount = {read=GetFormatCount, nodefault};
- __property Word Formats[int Index] = {read=GetFormats};
- public:
- /* TPersistent.Destroy */ __fastcall virtual ~TClipboard(void) { }
-
- public:
- /* TObject.Create */ __fastcall TClipboard(void) : Classes::TPersistent() { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- extern PACKAGE Word CF_PICTURE;
- extern PACKAGE Word CF_COMPONENT;
- extern PACKAGE TClipboard* __fastcall Clipboard(void);
- extern PACKAGE TClipboard* __fastcall SetClipboard(TClipboard* NewClipboard);
-
- } /* namespace Clipbrd */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Clipbrd;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Clipbrd
-